﻿namespace GoodAdmin.CodeGenerator;

public class CodeGenSimpleConfigAddInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required]
    [MaxLength(32)]
    public virtual string Name { get; set; }
    /// <summary>
    /// 编码
    /// </summary>
    [Required]
    [MaxLength(32)]
    public virtual string Code { get; set; }
    /// <summary>
    /// 数据库ID
    /// </summary>
    [Required]
    [MaxLength(32)]
    public string ConfigId { get; set; }
    /// <summary>
    /// 类型
    /// list列表,flow流程,simple：简易生成代码
    /// </summary>
    [MaxLength(8)]
    public virtual string Type { get; set; }
    /// <summary>
    /// 命名空间
    /// </summary>
    [Required]
    [MaxLength(64)]
    public virtual string NameSpace { get; set; }
    /// <summary>
    /// 分类
    /// </summary>
    [MaxLength(32)]
    public virtual string Category { get; set; }
    /// <summary>
    /// 描述
    /// </summary>
    [MaxLength(256)]
    public string Description { get; set; }
}
public class CodeGenSimpleConfigUpdateInput:CodeGenSimpleConfigAddInput
{
    [Required(ErrorMessage = "Id不能为空")]
    public long Id { get; set; }
}
